package com.esun.payment_api.service;

import com.esun.payment_api.domain.DkCusSubs;
import com.esun.payment_api.domain.User;
import com.esun.payment_api.dto.DkCusSubsQueryParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DkCusSubsService {
//    List<DkCusSubs> getList(DkCusSubsQueryParam queryParam, Integer pageSize, Integer pageNum);
    List<DkCusSubs> getList(@Param("dept_id") Integer dept_id , @Param("searchStr") String searchStr , @Param("co_id") Integer co_id, Integer pageSize, Integer pageNum);

    Integer getSubscribeNumber(User user);

    //订阅
    void customerSubscribe(Integer cusId, User user);

    //取消订阅
    void customerUnsubscribe(Integer cusId, User user);
}
